package com.hdsx.springboot.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 占贤银
 * time 2024/5/19 17:20
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
@Data
//@Component
@ConfigurationProperties(prefix = "user")
@Component
// @EnableConfigurationProperties
public class User {

    public User () {
        System.out.println("user.......");
    }

    private String username;

    private String password;
}
